﻿// ***********************************************************************
// <copyright file="QiushibaikeDataService.cs" company="四川全球通">
// Copyright (c) 四川全球通. All rights reserved.</copyright>
// Assembly         : Tzq.DataService.Service
// Author            : 谭志强
// Created          : 2016/1/13 10:59:46
// <summary></summary>
// ***********************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tzq.DataService.Buiness;
using Tzq.DataService.Contract;
using Newtonsoft.Json;

namespace Tzq.DataService.Service
{
    public class QiushibaikeDataService : IQiushibaikeDataService
    {
        public string GetJokesByKeyWordes(string keywords)
        {
            BGetJokes getJokes = new BGetJokes(keywords);
            getJokes.Execute();
            return JsonConvert.SerializeObject(getJokes.QiushibaikeList);
        }

        public string GetJokesByRandom()
        {
            BGetJokes getJokes = new BGetJokes();
            getJokes.Execute();
            return JsonConvert.SerializeObject(getJokes.QiushibaikeList);
        }
    }
}
